From: revisto Date: Tue, 16 Dec 2025 15:58:59 +0000 (+0330) Subject: status/volume: Use default color for muted microphone indicator X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~44^2~38 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=29b0a2f07a0aaa952c97d7eddf65aed2f1c6ba3e;p=gnome-shell.git status/volume: Use default color for muted microphone indicator The muted indicator status is currently hard to distinguish from the unmuted one. As there is no privacy concern when muted, don't apply the privacy-indicator styling in that state so the states become more distinct. Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/8077 Part-of: --- diff --git a/js/ui/status/volume.js b/js/ui/status/volume.js index 7b944f6ca..4f57ebb3a 100644 --- a/js/ui/status/volume.js +++ b/js/ui/status/volume.js @@ -502,8 +502,6 @@ class InputIndicator extends VolumeIndicator { constructor() { super(); - this._indicator.add_style_class_name('privacy-indicator'); - this._indicator.connect('scroll-event', (actor, event) => this._handleScrollEvent(this._input, event)); @@ -519,6 +517,7 @@ class InputIndicator extends VolumeIndicator { if (icon) this._indicator.icon_name = icon; + this._updatePrivacyIndicator(); }); this._input.bind_property('visible', @@ -530,6 +529,15 @@ class InputIndicator extends VolumeIndicator { this._onControlStateChanged(); } + _updatePrivacyIndicator() { + // Muted microphone doesn't need privacy indicator (no privacy concern) + const {isMuted} = this._input._stream; + if (isMuted) + this._indicator.remove_style_class_name('privacy-indicator'); + else + this._indicator.add_style_class_name('privacy-indicator'); + } + _onControlStateChanged() { if (this._control.get_state() === Gvc.MixerControlState.READY) this._readInput();